package com.ssyt.yt1.day19.generic;

class Person<I, B> {

	private I id;
	private B birthday;

	public B getBirthday() {
		return birthday;
	}

	public void setBirthday(B birthday) {
		this.birthday = birthday;
	}

	public I getId() {
		return id;
	}

	public void setId(I id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Person [id=" + id + ", birthday=" + birthday + "]";
	}

}

/**
 * 多个泛型的指定
 * 
 * @author Administrator
 *
 */
public class GenericDemo3 {

	public static void main(String[] args) {
		Person<String, String> person = new Person<>();
		person.setId("123");
		person.setBirthday("2015-12-18");

		System.out.println(person);
	}
}
